package com.mybatisplus.controller;


import com.mybatisplus.entity.Student;
import com.mybatisplus.service.StudentService;
import com.mybatisplus.service.impl.StudentServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xiaojie
 * @since 2021-04-25
 */
@ResponseBody
@Controller
@RequestMapping("/student")
public class StudentController {

    @Autowired()
    StudentService studentService;
    @RequestMapping("/test")
    public Student select(){
        return studentService.selectById(1);
    }
}

